#
# Cmake instructions file
#
cmake_minimum_required(VERSION 2.8)
 
include(Properties.cmake)
 
project(${NAME} CXX)

include(SBE/DeployDependencies)
include(SBE/AddBinaryTargets)
include(SBE/AddInstallTarget)
include(SBE/AddUninstallTarget)
include(SBE/AddPackageTarget)
include(SBE/AddTagTarget)

addBinaryTarget(
    TARGET_NAME ${NAME}
    TARGET_TYPE ${TYPE}
    SOURCES
        src/PlainDocument.cpp
        src/PlainParagraph.cpp
        src/Text.cpp
        src/PlainSmiley.cpp
    PUBLIC_HEADERS
        src/PlainDocument.h
        src/PlainParagraph.h
        src/Text.h
        src/Smiley.h
        src/Document.h
        src/Paragraph.h
        src/Printable.h        
    HANDLE_DECLSPEC
)

addInstallTarget(
    PACKAGE_NAME ${NAME}
    TARGETS_NAMES ${NAME}
    INCLUDE_PATH_REPLACE 
        "src/.* -> " 
        "test/mock/.* -> mock/"
)
